"use client";
import useStore from "@/hooks/useStore";
import { useUserStore } from "@/stores/user-store";

export default function Home() {
  const user = useStore(useUserStore, (state) => state.user);
  return (
    <div className="w-full h-full flex flex-col justify-center items-center">
      {user ? <div>欢迎, {user.name}</div> : <div></div>}
    </div>
  );
}
